package com.hospital.doctor.controller;

import com.hospital.doctor.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/doctor")
@CrossOrigin
public class DoctorController {


    @Autowired
    private DoctorService doctorService;

//    @ResponseBody
////    @RequestMapping("/select")
////    public Map<String,List<Doctor>> selectAll(){
////        List<Doctor> doctors = doctorService.selectAll();
////        Map<String,List<Doctor>> map = new HashMap<>();
////        System.out.println(doctors);
////        map.put("aaa",doctors);
////        return map;
////    }






}
